package com.bw.a2207a.db

import android.content.Context
import androidx.room.Room

/**
 *
 * @ClassName: CartDbUtil
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/10/22 4:23 PM
 * @Version: 1.0
 */
class CartDbUtil {
    companion object {
        lateinit var cartDb: CartDb
        fun init(context: Context) {
            //初始化数据库，创建具体的数据库实例
            cartDb = Room.databaseBuilder(context, CartDb::class.java, "cart.db")
                .allowMainThreadQueries()
                .build()
        }

    }
}